package com.example.book.in.dao;

import com.example.book.base.BaseDao;
import com.example.book.in.entity.BookPopularity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hcj
 */
@Mapper
public interface BookPopularityDao extends BaseDao<BookPopularity> {

    List<BookPopularity> findFrontList(@Param("limit") Integer limit);

    List<BookPopularity> findListByLimit(BookPopularity popularity);

}